package heima3_2.cn.osc.ui.activity;

import android.content.Intent;
import android.os.SystemClock;
import android.view.View;

import net.oschina.app.R;

import heima3_2.cn.osc.base.BaseActivity;

/**
 * Created by Administrator on 2017/1/12 0012.
 */

public class SplashActivity extends BaseActivity {
    @Override
    public int getLayoutRes() {
        return R.layout.activity_splash_item;
    }

    @Override
    public void initView() {

    }

    @Override
    public void iniEvent() {

    }

    @Override
    public void initData() {
        new Thread(){
            @Override
            public void run() {
                SystemClock.sleep(1000);
                Intent intent=new Intent(SplashActivity.this,MainActivity.class);
                startActivity(intent);
                finish();
            }
        }.start();

    }

    @Override
    public void onClick(View v) {

    }
}
